package com.yami.shop.dao;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.UserDeposit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDepositMapper extends BaseMapper<UserDeposit> {

    void depositMoney(UserDeposit userDeposit);

    UserDeposit getDepositRecordByDepositId(Long depositId);

    UserDeposit getDepositMoneyByOrderNumber(String orderNumber);

    List<UserDeposit>  getUserDepositList(@Param("lessThanUpdateTime") DateTime lessThanUpdateTime);

}
